#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

#include <iostream>

#include "base/simapi.h"

class A {
 public:
    A();
    int a ();
};

A::A () {}

int A::a () {
    std::cout << "Hello, world!\n" << std::endl; 
    return 42;
}

A* a;

void mainX (int argc, const char** argv, const char **envp) {
    a = new A();
    Sim_Print1("%p\n", (int)a);
    assert(a != NULL);
    Sim_Print1("%d\n", a->a());
}
